package com.huimingpay.merchant.convert;

import com.huimingpay.merchant.dto.MerchantDTO;
import com.huimingpay.merchant.vo.MerchantRegisterVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * ClassName:MerchantVOConvert
 * Package:com.huimingpay.merchant.convert
 * Time: 2024/7/19
 */

@Mapper
public interface MerchantVOConvert {
    //单例模式的用法，用于对象之间的映射
    MerchantVOConvert INSTANCE = Mappers.getMapper(MerchantVOConvert.class);

    MerchantDTO VOToDTO(MerchantRegisterVo vo);

    MerchantRegisterVo DTOToVO(MerchantDTO dto);

    List<MerchantDTO> VOListToDTOList(List<MerchantRegisterVo> voList);

    List<MerchantRegisterVo> DTOListToVOList(List<MerchantDTO> dtoList);

}
